
extends "../cex___toolman/cex___toolman.gd"
func _info():
	pass

func _connect():
	._connect()

func _extInit():
	._extInit()
	chaName = "学徒"
	camp = "法师"
	lv = 1
	attCoe.atkRan = 2
	attCoe.atk = 8 / 8.5 * 2
	attCoe.maxHp = 320 / 112.5
	attAdd.spd += 1.0
	atkEff = "atk_dang"
	addCdSkill("xt",4)
	addSkillTxt("奥术飞弹：发射一颗无属性奥术飞弹，造成150%魔法伤害[cd:4秒]【随着转职会出现不同效果】")

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "xt" && aiCha != null:
		#print(self.id)
		if self.id == "cTDM":
			cst("奥术飞弹","000000",position)
		hurtChara(aiCha,att.atk*1.5,Chara.HurtType.MGI,Chara.AtkType.SKILL)
		if self.id.find("cTDM_1") != -1:
			cst("奥术飞弹·冰","000000",position)
			if sys.rndPer(50):
				aiCha.addBuff(b_jieShuang.new(5))
			if sys.rndPer(10):
				aiCha.addBuff(ctrl.b_bingdong.new(1))
		if self.id.find("cTDM_2") != -1:
			cst("奥术飞弹·火","000000",position)
			if sys.rndPer(50):
				aiCha.addBuff(b_shaoZhuo.new(1))
			if sys.rndPer(10):
				aiCha.addBuff(ctrl.b_zs.new(4,self,0))
		if self.id.find("cTDM_3") != -1:
			#print(1)
			cst("奥术飞弹·秘","000000",position)
		if self.id.find("cTDM_4") != -1:
			cst("奥术飞弹·光","000000",position)
			if sys.rndPer(50):
				aiCha.addBuff(b_shiMing.new(2))
			if sys.rndPer(10):
				aiCha.addBuff(ctrl.b_chenmo.new(2))
		if self.id.find("cTDM_4") != -1:
			cst("奥术飞弹·暗","000000",position)
			if sys.rndPer(50):
				aiCha.addBuff(b_zhonDu.new(2))
			if sys.rndPer(10):
				aiCha.addBuff(ctrl.b_jinliao.new(1))
		if self.id == "cex___Hide_SoulMage":
			cst("奥术飞弹·魂","000000",position)
			if sys.rndPer(33):
				aiCha.addBuff(ctrl.b_xuanyun.new(1))